﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Imaginecup.recycling.Object.Item;
using Imaginecup.recycling.Stage;
using Imaginecup.factory;
using Imaginecup.gameState.recycling;

namespace Imaginecup.recycling.Factory
{
    public enum StageID
    {
        SELECT_STAGE,
        STAGE1,
        STAGE2,
        STAGE3
    }
    public class StageFactory : IFactory
    {
        public object GetObject(object ID)
        {
            StageID id = (StageID)ID;
            IStage stage = null;
            switch (id)
            {
                case StageID.STAGE1:
                    stage = new Stage1();
                    break;
                case StageID.STAGE2:
                    stage = new Stage1();
                    break;
                case StageID.SELECT_STAGE:
                    stage = new SelectStage();
                    break;
            }

            return stage;
        }
    }
}
